package com.sports.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sports.entity.Register;
import com.sports.entity.RegisterDTO;
import com.sports.service.RegisterService;
import com.sports.mapper.RegisterMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
* @author LZL
* @description 针对表【t_register】的数据库操作Service实现
* @createDate 2024-03-21 20:55:04
*/
@Service
public class RegisterServiceImpl extends ServiceImpl<RegisterMapper, Register>
    implements RegisterService{

    @Resource
    private RegisterMapper registerMapper;


    @Override
    public IPage<RegisterDTO> showRegister(Page<RegisterDTO> page,String name) {
        return registerMapper.selectRegister(page,name);
    }

    @Override
    public IPage<RegisterDTO> showRegisterByAthletesId(Page<RegisterDTO> page, Integer athletesId,Integer role,String name) {
        return registerMapper.selectRegisterByAthletesId(page, athletesId,role,name);
    }
}




